package org.jeecg.modules.AccessoriesCenter.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.AccessoriesCenter.entity.ButtonDaochuEntity;
import org.jeecg.modules.AccessoriesCenter.entity.ButtonEntity;

import java.util.List;

public interface ButtonManageService {
    IPage<ButtonEntity> getButtonlist(Page<ButtonEntity> page, Integer status, String buttonsName, String buttonsCode, String categoryId);

    int updateButtonstatus(int id, int status);

    ButtonEntity getButtonbyId(int id);

    int addButton(ButtonEntity entity);

    //查询纽扣编号是否已经存在
    String getButtoncodebycode(String buttonsCode);

    int updateButton(ButtonEntity entity);

    List<ButtonEntity> getallButtonCategory();

    void piliangUpdatestatus( List<Integer> ids, int status);

    List<ButtonDaochuEntity> getButtonDaochulist(Integer status, String buttonsCode, String categoryId);

    int importExcel(List<ButtonDaochuEntity> list);
}
